import { Status } from 'src/constants';
import { AddressBookItem, ChatData, TaskItem } from 'src/schemas/user.schema';
import { HttpResponse } from 'src/share';

export interface InfoResData {
  info: {
    id: string;
    nickname: string;
  };
  address_book: Array<AddressBookItem>;
  chat_map: Record<string, ChatData>;
  task_stack: Array<TaskItem>;
}

export class InfoResponse extends HttpResponse {
  data: InfoResData;
  constructor(data: InfoResData) {
    super('ok', Status.SUCCESS);
    this.data = data;
  }
}
